package com.shuai.jit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shuai.jit.entity.course.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TagMapper extends BaseMapper<Tag> {

    @Select("select * from tag where pid=#{pid} and type=1")
    List<Tag>  getVideoTag(String pid);

}
